import Vue from 'vue'
import VueRouter from 'vue-router'

import Find from '@/views/Find.vue'
import My from '@/views/My.vue'
import Friend from '@/views/Friend.vue'
import NotFound from '@/views/NotFound.vue'
import Store from '@/views/Store.vue'
import St from '@/views/St.vue'
import Download from '@/views/Download.vue'

Vue.use(VueRouter)

const router = new VueRouter({
  routes: [
    {
      path: '/',
      redirect:'/find',
    },
    {
      path: '/find',
      component:Find,
    },
    {
      path: '/my',
      component:My,
    },
    {
      path: '/my/:username/:password',
      component:My,
    },
    {
      path: '/part',
      component:Friend,
    },
    {
      path: '/store',
      component:Store,
    },
    {
      path: '/st',
      component:St,
    },{
      path: '/download',
      component:Download,
    },
    {
      path: '*',
      component:NotFound,
    }
  ],
  mode: "history",
})
export default router